package com.bao.work.work01;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.Random;

/**
 * @author baoye
 * @date 2024-07-30/18:29
 */
public class Test01 {
    public static final Random RANDOM=new Random();
    public static void main(String[] args) {
        ArrayList<StringBuffer> strings =new ArrayList<>();
        for (int i=0;i<10;i++){
            StringBuffer sb=new StringBuffer("");
            for(int j=0;j<5;j++){
                int order=RANDOM.nextInt(3);
                if(order==0){
                    sb.append(RANDOM.nextInt(10));
                }else if(order==1){
                    sb.append((char)(RANDOM.nextInt(26)+97));
                }else {
                    sb.append((char)(RANDOM.nextInt(26)+65));
                }
            }
            strings.add(sb);
        }
        Iterator<StringBuffer> iterator = strings.iterator();
        while(iterator.hasNext()){
            System.out.println(iterator.next());
        }

    }
}
